How to create the right loop / jquery / picture wipe? [migrated]

Posted by Razor on Pro Webmasters See other posts from Pro Webmasters or by Razor
Published on 2012-06-22T11:18:56Z Indexed on 2012/06/22 15:25 UTC
Read the original article Hit count: 323

Filed under:
|
|
|
|

<script type="text/javascript" src="slider/jquery.touch-gallery-1.0.0.js"></script>
<script type="text/javascript" src="slider/jquery.touch-gallery-1.0.0.min.js"></script>

<script>
$('body').live("click", function() {
    for (var i=0; i<4; i++) {
    alert("bla: "+i);
    }
});
$('body').live("swipeleft", function(){
    var nextpage = $("#page00002").next('section[data-role="page"]');
    $.mobile.changePage(nextpage, 'slide');
  });
    $('body').live("swiperight", function(){
        var prevpage = $("#page1").prev('section[data-role="page"]');
        $.mobile.changePage(prevpage, 'slide');
  });   
</script>

© Pro Webmasters or respective owner

Related posts about JavaScript

Related posts about jQuery